//
//  GoodsItem.m
//  XDCommonApp
//
//  Created by XD-XY on 7/17/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "GoodsItem.h"

@implementation GoodsItem

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor whiteColor];
        [self initViews];
    }
    return self;
}

-(void)initViews
{
    self.photoIV = [UIImageView initImageViewRect:CGRectMake(15,7,75,75) andImage:[UIImage imageNamed:@"placeholderImg"] andUserInteractionEnabled:YES];
    self.priceLB = [UILabel initLabelRect:CGRectMake(0, 91,self.frame.size.width, 21) andBackGroudColor:[UIColor clearColor] andTextFont:[UIFont boldSystemFontOfSize:13.0f] andTextColor:[UIColor redColor] andTextAlignment:NSTextAlignmentCenter];
    _priceLB.text = @"￥567.00";
    
    [self addSubview:_photoIV];
    [self addSubview:_priceLB];
}

-(void)setDataDict:(NSDictionary *)dataDict
{
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
